const major = {
  list: {
    "errCode": 0,
    "data": [
      {
        "id": "684505461919055871",
        "majorName": "逻辑学",
        "categoryId": "1",
        "categoryName": "哲学",
        "majorCategoryId": "1",
        "majorCategoryName": "哲学类",
        "order": 0,
        "state": 1,
        "createTime": 1582546546000,
        "updateTime": 1583823334000
      },
      {
        "id": "684505461919055872",
        "majorName": "宗教学",
        "categoryId": "1",
        "categoryName": "哲学",
        "majorCategoryId": "1",
        "majorCategoryName": "哲学类",
        "order": 1,
        "state": 1,
        "createTime": 1582546546000,
        "updateTime": 1583823334000
      },
      {
        "id": "684505461919055873",
        "majorName": "世界史",
        "categoryId": "2",
        "categoryName": "历史学",
        "majorCategoryId": "2",
        "majorCategoryName": "历史学类",
        "order": 2,
        "state": 1,
        "createTime": 1582546546000,
        "updateTime": 1583823334000
      }
    ]
  },
  addMajor: {
    errCode: 0
  },
  updateMajor: {
    errCode: 0
  },
  updateStatus: {
    errCode: 0
  }
}

export default {
  getMajors: config => {
    console.log(`======getMajors==========`);
    console.log(config);
    console.log(`================`);
    return major.list;
  },
  addMajor: config => {
    console.log("request addMajor config:");
    console.log(config);
    return major['addMajor']
  },
  updateMajor: config => {
    console.log("request updateMajor config:");
    console.log(config);
    return major['updateMajor']
  },
  updateStatus: config => {
    console.log("request updateStatus config:");
    console.log(config);
    return major['updateStatus']
  }
}
